package app.itw.tison.cloud.order_service.client.fallback;


import app.itw.tison.cloud.order_service.client.ProductClient;
import java.util.HashMap;
import java.util.List;
import org.springframework.stereotype.Component;


/**
 * 针对商品服务降级处理
 */
@Component
public class ProductClientFallback implements ProductClient {

    public String getProduct(String id) {
        System.out.println(id+"商品调用失败,发送邮件给tison，"+System.currentTimeMillis());
        return null;
    }

    public String getProducts(List<HashMap<String, Object>> list) {
        System.out.println(list+"商品调用失败,发送邮件给tison，"+System.currentTimeMillis());
        return null;
    }
}
